<?php $this->pageTitle=Yii::app()->name . ' - '.UserModule::t("Registration");
$this->breadcrumbs=array(
	UserModule::t("Registration"),
);
?>
<div class="register radius-8px">
    <h3><?php echo UserModule::t("Registration"); ?></h3>
    
    <?php if(Yii::app()->user->hasFlash('registration')): ?>
    <div class="success">
    <?php echo Yii::app()->user->getFlash('registration'); ?>
    </div>
    <?php else: ?>
    
    <div class="form">
    <?php $form=$this->beginWidget('UActiveForm', array(
        'id'=>'registration-form',
        'enableAjaxValidation'=>true,
        'disableAjaxValidationAttributes'=>array('RegistrationForm_verifyCode'),
        'htmlOptions' => array('enctype'=>'multipart/form-data'),
    )); ?>
    
        
        
        <?php // echo $form->errorSummary(array($model)); ?>
        
        <div class="row">
        <?php echo $form->labelEx($model,'username'); ?>
        <?php echo $form->textField($model,'username'); ?>
        <?php echo $form->error($model,'username'); ?>
        </div>
        
        <div class="row">
        <?php echo $form->labelEx($model,'password'); ?>
        <?php echo $form->passwordField($model,'password'); ?>
        <?php echo $form->error($model,'password'); ?>
        </div>
        
        <div class="row">
        <?php echo $form->labelEx($model,'verifyPassword'); ?>
        <?php echo $form->passwordField($model,'verifyPassword'); ?>
        <?php echo $form->error($model,'verifyPassword'); ?>
        </div>
        
        <div class="row">
        <?php echo $form->labelEx($model,'email'); ?>
        <?php echo $form->textField($model,'email'); ?>
        <?php echo $form->error($model,'email'); ?>
        </div>
            
            <div class="row">
        <?php echo $form->labelEx($model,'full_name'); ?>
        <?php echo $form->textField($model,'full_name'); ?>
        <?php echo $form->error($model,'full_name'); ?>
        </div>
        
        <?php if (UserModule::doCaptcha('registration')): ?>
        <div class="row">
            <?php echo $form->labelEx($model,'verifyCode'); ?>
            
            <?php $this->widget('CCaptcha'); ?>
        </div>
        <div class="row">
            <label for="">&nbsp;</label>
            <?php echo $form->textField($model,'verifyCode'); ?>
            <?php echo $form->error($model,'verifyCode'); ?>
        </div>
        <?php endif; ?>
        
        <div class="row submit">
            <label for="">&nbsp;</label>
            <?php echo CHtml::submitButton(UserModule::t("Register")); ?>
        </div>
    
    <?php $this->endWidget(); ?>
    </div><!-- form -->
    <?php endif; ?></div>